package com.chapter10.innerclass_;

public class AnonymousInnerClassDetail {
    public static void main(String[] args) {

    }
}

class Outer04 {
    private int n1 = 99;

    public void f1() {
        //创建一个基于类的匿名内部类
        Person p = new Person() {
            @Override
            public void hi() {
                super.hi();
            }
        };
        p.hi();
    }
}

class Person {
    public void hi(){

    }
}
